import request from '@/utils/request'

// 查询项目巡检列表
export function listDealInspection(query) {
  return request({
    url: '/inspection/dealInspection/list',
    method: 'get',
    params: query
  })
}

// 查询项目巡检详细
export function getDealInspection(id) {
  return request({
    url: '/inspection/dealInspection/' + id,
    method: 'get'
  })
}

// 保存项目巡检
export function saveDealInspection(data) {
  return request({
    url: '/inspection/dealInspection/save',
    method: 'post',
    data: data
  })
}

// 删除项目巡检
export function delDealInspection(id) {
  return request({
    url: '/inspection/dealInspection/' + id,
    method: 'delete'
  })
}

// 导出项目巡检
export function exportDealInspection(query) {
  return request({
    url: '/inspection/dealInspection/export',
    method: 'get',
    params: query
  })
}
